home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
util
/
dir
/
ro_v125.lha
/
RO
/
ARexx
/
ArcHandler.RO
< prev
next >
Wrap
Text File
|
1997-01-12
|
680b
|
38 lines
/*
$VER: ArcHandler.RO 0.3
Author:
Oliver Rummeyer (oliver.rummeyer@student.uni-ulm.de)
Function:
Loads the ArcHandler equivalent directory of the active directory.
Requires:
RO 0.90 or newer
Example:
CUSTOMTYPE "#?.lha" "" "LHA/LZH Archive" "Rx >NIL: REXX:RO/ArcHandler.RO %N %a"
*/
PARSE ARG FileName PortName
IF PortName="" THEN
PortName='RO.1'
ELSE
PortName=STRIP(PortName)
ADDRESS VALUE PortName
OPTIONS RESULTS
'Path Active'
IF RESULT="RESULT" THEN
EXIT 5
SourceDir=RESULT
Position=POS(":",SourceDir)
Directory='ARC:'||SUBSTR(SourceDir,1,Position-1)||'/'SUBSTR(SourceDir,Position+1)
'Load Active "'||Directory||FileName||'"'